package com.pt25.base.dep.nacos.encrypt;

import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * nacos配置注解
 */
@Target(ElementType.TYPE) // 根据需要可以是 TYPE、METHOD、FIELD 等
@Retention(RetentionPolicy.RUNTIME)
@SpringBootApplication
@EnableEncryptableProperties
@Import({
        EncryptConfig.class,
        EncryptResolver.class
})
public @interface EncryptEnable {
}
